package com.wyh.yuhcloud.exception;

/**
 * @author wyh
 * @version 1.0
 * @date 2022/2/23 15:13
 */
public class LoginFeignException extends RuntimeException{
    private static final long serialVersionUID = 1L;
    private Integer code;
    private String message;

    public LoginFeignException(String message) {
        super();
        this.code = 10000;
        this.message = message;
    }

    public LoginFeignException(Integer code, String message) {
        super();
        this.code = 10000;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
